import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'Login',
      component: () => import('@/views/Login.vue'),
    },
    {
      path: '/Menu',
      name: 'Menu',
      component: () => import('@/views/Menu.vue'),
      children: [
        {  
          path: '/OutboundTransaction',
          name: 'OutboundTransaction',          
          component: () => import('@/views/OutboundTransaction.vue'),
        },
        {  
          path: '/Home',
          name: 'Home',
          component: () => import('@/views/WMS.System/Home.vue'),
        },
        {  
          path: '/Productlook',
          name: 'Productlook',          
          component: () => import('@/views/Productlook.vue'),
        },
        {
          path: '/WarehouseShow',  
          name: 'WarehouseShow',
          component: () => import('@/views/WMS.System/WarehouseShow.vue'),
        },
        {
          path: '/WarehouseArea',  
          name: 'WarehouseArea',
          component: () => import('@/views/WMS.System/WarehouseArea.vue'),
        },
        {
          path: '/GoodsAllocation',  
          name: 'GoodsAllocation',
          component: () => import('@/views/WMS.System/GoodsAllocation.vue'),
        },
        {
          path: '/Inventory',  
          name: 'Inventory',
          component: () => import('@/views/WMS.System/Inventory.vue'),
        },
        {
          path: '/StorageRecord',  
          name: 'StorageRecord',
          component: () => import('@/views/WMS.System/StorageRecord.vue'),
        },
        {
          path: '/DeliveryRecord',  
          name: 'DeliveryRecord',
          component: () => import('@/views/WMS.System/DeliveryRecord.vue'),
        },
        {
          path: '/AllocationRecord',  
          name: 'AllocationRecord',
          component: () => import('@/views/WMS.System/AllocationRecord.vue'),
        },
        {
          path: '/Supperlist',  
          name: 'Supperlist',
          component: () => import('@/views/Supper/Supperlist.vue'),
        },
        {
          path: '/Goods',  
          name: 'Goods',
          component: () => import('@/views/Supper/Goods.vue'),
        },
        {
          path: '/PurchaseApply',  
          name: 'PurchaseApply',
          component: () => import('@/views/Supper/PurchaseApply.vue'),
        },
        {
          path: '/PurchaseOrderStat',  
          name: 'PurchaseOrderStat',
          component: () => import('@/views/Supper/PurchaseOrderStat.vue'),
        },
        {  
          path: '/Demo',
          name: 'Demo',
          component: () => import('@/views/Demo.vue'),
        },
        {  
          path: '/InventoryVerification',
          name: 'InventoryVerification',
          component: () => import('@/views/WMS.System/InventoryVerification.vue'),
        },
      ]
    },
    {
      path: '/about',
      name: 'About',
      component: () => import('@/views/About.vue'),
    },
    {  
      path: '/help-center',
      name: 'HelpCenter',
      component: () => import('@/views/HelpCenter.vue'),
    },
  ],
})

export default router
